﻿<cfset ad = url.ad >
<cfset cid = url.cid >
<cfset end = url.end >
<cfset id = url.id >
<cfset loc = url.loc >
<cfset notes = url.notes >
<cfset rem = url.rem >
<cfset rrule = url.rrule >
<cfset start = url.start >
<cfset title = url.title >
<cfset urlstring = url.urlstring >
<cfset recipient = url.recipient >
<cfset pid = url.pid >

<cfif cid EQ 1 >
	<cfset cal = "Home" >
<cfelseif cid EQ 2 >
	<cfset cal = "Work" >
<cfelseif cid EQ 3 >
	<cfset cal = "School" >
<cfelseif cid EQ 4 >
	<cfset cal = "Sports" >
<cfelseif cid EQ 5 >
	<cfset cal = "Family" >
<cfelse>
	<cfset cal = "None" >
</cfif>

<cfmail
	from="leonelllagumbay@gmail.com"
	to="#recipient#"
	subject="#title#"
	type="html">
		
	<cfoutput>
	<p><strong>Event ID:</strong> #id#</p>
	<p><strong>Calendar:</strong> #cal#</p>
	<p><strong>Title:</strong> #title#</p>
	<p><strong>Start Date:</strong> #start#</p>
	<p><strong>End Date:</strong> #end#</p>
	<p><strong>Notes:</strong> #notes#</p>
	<p><strong>Location:</strong> #loc#</p>
	<p><strong>Web:</strong> #urlstring#</p>
	
	</cfoutput>
</cfmail>
<cftry>
	<cfschedule    
	    action 			= "delete"
	    task 			= "calendar#title##start##pid#"
	>  
	<cfcatch>
	</cfcatch>
</cftry>
<cfoutput>Success</cfoutput>